﻿@model Yala.Models.Users.User

@{
    ViewBag.Title = "Profile";
}

<h2>User Profile</h2>
<p>
    Use the form below to update your profile. 
</p>
<p>
    Shhhhh...... No secret here.
</p>
<p></p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "User profile update was unsuccessful. Please correct the errors and try again.")
    <div class="container">
        <fieldset>
            <legend>User Profile Information</legend>

            <div class="required span-3">
                @Html.LabelFor(m => m.FirstName)
            </div>
            <div class="editor-field span-20 last">
                @Html.TextBoxFor(m => m.FirstName)
                @Html.ValidationMessageFor(m => m.FirstName)
            </div>

            <div class="not-required span-3">
                @Html.LabelFor(m => m.MiddleName)
            </div>
            <div class="editor-field span-19 last">
                @Html.TextBoxFor(m => m.MiddleName)
            </div>

            <div class="required span-3">
                @Html.LabelFor(m => m.LastName)
            </div>
            <div class="editor-field span-20 last">
                @Html.TextBoxFor(m => m.LastName)
                @Html.ValidationMessageFor(m => m.LastName)
            </div>

            <div class="required span-3">
                @Html.LabelFor(m => m.Username)
            </div>
            <div class="editor-field span-20 last">
                @Html.TextBoxFor(m => m.Username)
                @Html.ValidationMessageFor(m => m.Username)
            </div>

            <div class="required span-3">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field span-20 last">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>       

            <p>
                <input type="submit" value="Submit" />
            </p>
        </fieldset>
    </div>
}


